#include <iostream>
#include <cstdio>
#include <cmath>
#include <algorithm>
#include <cstring>
#include <string>
#include <cctype>
#include <cstdlib>
#include <map>
#include <ctime>
#include <vector>
#include <queue>
using namespace std;
template<class T>
class test
{
    private:
        T n;
    public:
        test(T nn)
        {
            n=nn;
        }
        void turn()
        {
//            if(typeid(T)==typeid(int))
//                cout<<n*n;
            if(typeid(T)==typeid(string))
                cout<<n+n;
        }
};
int main()
{
    test <int> t1(8);
    test <string> t2("hello!");
    t2.turn();
    return 0;
}